package com.fkdx.dao.mapper;

import com.fkdx.dao.condition.VoucherCondition;
import com.fkdx.dao.entity.Voucher;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository()
public interface VoucherMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Voucher record);

    Voucher selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Voucher record);
    
    int updateSelective(Voucher record);

    List<Voucher> selectAll(VoucherCondition condition);

    int updateByIds(@Param("ids") List<Long> ids);

    Voucher selectByUid(@Param("uid")  Long uid, @Param("type") String type);
}
